package com.huatai.bpmn.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 * @TableName tb_role
 */
@TableName(value ="tb_role")
@Data
@ApiModel(value = "角色表",description = "角色表")
public class RoleEntity implements Serializable {
    /**
     * 主键
     */
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@ApiModelProperty("主键")
    private Long id;

    /**
     * 角色id
     */
	@ApiModelProperty("角色id")
    private Long roleId;

    /**
     * 角色名称
     */
	@ApiModelProperty("角色名称")
    private String roleName;

    /**
     * 创建时间
     */
	@ApiModelProperty("创建时间")
	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
	@ApiModelProperty("更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
	@TableLogic
	@TableField("is_deleted")
	@ApiModelProperty("逻辑删除")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
